// pages/param/index.js
Page({
  data: {
    list : [
      ["/images/params/quanxian.png", "权限校验", 1, "permission"],
      ["/images/params/man_params.png", "快速设置", 1, "fastsetting"], 
      ["/images/params/fast_setting.png", "功能设置", 1, "function"],
      ["/images/params/v_params.png", "电压参数", 1, 
      "voltage"],
      ["/images/params/t_params.png", "温度参数", 1, "temp"],
      ["/images/params/i_params.png", "电流参数", 1, "electric"],
      ["/images/params/junheng_params.png", "均衡和加热参数", 1, "junheng"],
      ["/images/params/battery_params.png", "电池包参数", 1, "battery"],
      ["/images/params/system.png", "系统参数", 0],
      ["/images/params/custom.png", "自定义参数", 0],
      ["/images/params/other.png", "其他参数", 0],
      ["/images/params/man_params.png", "厂家参数", 0],
      ["/images/params/gprs_params.png", "GPRS参数", 0],
    ]
  },

  handleClick(e) {
    const url = e.currentTarget.dataset.url;
    const path = "/pages/param/" + url;
    wx.navigateTo({
      url: path,
    })
  }
})